<?php

namespace app\http\middleware;

class Check
{
    public function handle($request, \Closure $next)
    {
        if($request->param('name') == 'think')
        {
            return redirect('/index/index/name/id/1.html');
        }

        return $next($request);
    }
}
